<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title>上传文件</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
</head>

<body>
  <input type="file" id="uploaderInput" multiple="multiple" />
  <div id="videoContent" style="visibility:hidden">
    <video id="video" src="" style="width:400px" muted autoplay controls></video>
  </div>
  进度:
  <div id="process">0</div>
</body>

</html>
<script src="./js/jquery-1.12.4.js"></script>
<script src="./js/md5.js"></script>
<script src="./js/axios.js"></script>
<script>
  function getHash(file) {
    return new Promise((resolve) => {
      const reader = new FileReader();
      reader.readAsDataURL(file);
      reader.onload = function (e) {
        const hash = hex_md5(e.target.result);
        resolve(hash);
      }
    })
  }
</script>